package com.guigu.xm.lq.service.impl;

import com.guigu.xm.lq.mapper.SysUsersMapper;
import com.guigu.xm.lq.service.SysUsersService;
import com.guigu.xm.pojo.SysUsers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysUsersServiceImpl implements SysUsersService {

    @Autowired(required = false)
    SysUsersMapper sum;
    @Override
    public SysUsers loginSys(String loginId, String password) {
        SysUsers login = sum.login(loginId, password);
        return login;
    }

    @Override
    public int insert(SysUsers record) {
        return sum.insert(record);
    }

    @Override
    public SysUsers chaxu(String login_id) {
        return sum.chaxu(login_id);
    }

    @Override
    public int DelUser(String id) {
        return sum.DelUser(id);
    }

    @Override
    public int updateByPrimaryKeySelective(SysUsers record) {
        return sum.updateByPrimaryKeySelective(record);
    }
}
